﻿@model MinistryStandardPlatformEntity.InfoVehicle
@using MinistryStandardPlatformWeb;
@{
    Layout = "~/Views/Shared/_CommonLayout.cshtml";
}
<style>
    
    .twocoltb
    {
        margin-left: 20px;
    }

    .twocoltb td:nth-child(2n)
    {
        padding-left: 20px;
    }

    tr td:nth-child(2n)
    {
        text-align: left;
    }

    tr td:nth-child(3n)
    {
        padding-left: 20px;
    }

    td
    {
        vertical-align: middle;
        height: 42px;
        background-color:transparent;
    }

    table
    {
        border-collapse: collapse;
        background-color: transparent;
    }
    tr
    {
        height: 42px;
        background-color:transparent;
    }
    tbody
    {
        background-color:transparent;
    }

    input[type='checkbox']
    {
        vertical-align: middle;
    }

    input[type='text']
    {
        width: 185px;
    }

    select
    {
        width: 185px;
    }

</style>

<script type="text/javascript" src="~/Scripts/jquery-easyui/jquery.easyui.min.js"></script>
<link type="text/css" href="~/Scripts/jquery-easyui/themes/default/easyui.css" rel="stylesheet" />
<link type="text/css" href="~/Scripts/jquery-easyui/themes/icon.css" rel="stylesheet" />
<script src="~/Scripts/project/operationmanagevehiclecreate.js"></script>
<script src="~/Scripts/My97DatePicker/WdatePicker.js"></script>
<link type="text/css" href="~/Scripts/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" />
<form action="/Vehicle/Edit" method="post" id="vehiclecreateform">
    <input type="hidden" name="Vehiclenum" value="@Model.Vehiclenum" />
    <div id="popContainerDiv" style="height:580px;">
        <div class="fillparentheight easyui-tabs box verticalbox" id="tt">
            @if(CommonFunctions.GetLoginUser().HasMenuRight("125"))
            {
            <div title="基本信息" data-options="closable:false" style="height:477px;width:630px;text-align:center;">
                <table style="width:98%;">
                    <tr>
                        <td>
                            <label class="alert">*</label>内部编号：</td>
                        <td>@Html.TextBoxFor(model => model.FInnerId, new {  @id = "FInnerId" })</td>
                        <td>
                            <label class="alert">*</label>车牌号：</td>
                        <td>@Html.TextBoxFor(model => model.VehicleId, new {  })</td>
                    </tr>
                    <tr>
                        <td>
                            <label class="alert">*</label>安装单位：</td>
                        <td>
                            <input type="text" readonly="readonly" style="vertical-align:middle;width:155px;" id="InstallUnitName" name="InstallUnitName" value="@{if(Model.InfoUnit1!=null){@Model.InfoUnit1.UNITNAME}}"/>
                            @Html.HiddenFor(model => model.InstallUnitId, new { @style = "vertical-align:middle;", id = "InstallUnitId" })
                            <img id="selectInstallUnit" src="~/Images/search.png" style="vertical-align: middle;" />
                        </td>
                        <td>
                            <label class="alert">*</label>安装日期：</td>
                        <td>@Html.TextBoxFor(model => model.InstallDate, new {  @readonly = "readonly", @class = "hasDatepicker Wdate", @onclick = "WdatePicker()" })</td>
                    </tr>
                    <tr>
                        
                        <td><label class="alert">*</label>SIM卡号：</td>
                        <td>@Html.TextBoxFor(model => model.SIM, new {  })</td>
                    </tr>
                    <tr>
                        <td>
                            <label class="alert">*</label>车辆类型：</td>
                        <td>@Html.DropDownListFor(model=>model.VehicleType,@ViewBag.VehicleType as SelectList,string.Empty, new {@id="VehicleType" })</td>
                        <td>
                            <label class="alert">*</label>终端类型：</td>
                        <td>@Html.DropDownListFor(model=>model.GPSType,@ViewBag.GpsType as SelectList, new { @id="GPSType"})</td>
                    </tr>
                    <tr>
                        <td>终端版本号：</td>
                        <td>@Html.DropDownListFor(model=>model.GPSVersion,@ViewBag.GpsVersion as SelectList,new{ @id="GPSVersion" })</td>
                        <td>行驶记录仪版本号：</td>
                        <td>@Html.DropDownListFor(model=>model.TerminalVersion,@ViewBag.TerminalVersion as SelectList, new{ @id="TerminalVersion" })</td>
                    </tr>
                    <tr>
                        <td>终端ID：</td>
                        <td>@Html.TextBoxFor(model => model.TerminalId, new {  })</td>
                        <td>安装人员：</td>
                        <td>@Html.DropDownListFor(model=>model.InstallStaffId,@ViewBag.InstallStaffId as SelectList,string.Empty, new { @id="InstallStaffId"})</td>
                    </tr>
                    <tr>
                        <td>车辆颜色：</td>
                        <td>@Html.DropDownListFor(model=>model.VehicleColor,@ViewBag.VehicleColor as SelectList,string.Empty, new { @id="VehicleColor"})</td>
                        <td>设备串号：</td>
                        <td>@Html.TextBoxFor(model => model.GPSID, new {  })</td>
                    </tr>
                    <tr>
                        <td>车辆品牌：</td>
                        <td>@Html.DropDownListFor(model=>model.VehicleBrand,@ViewBag.VehicleBrand as SelectList,string.Empty, new {@id="BrandModel" })</td>
                        <td>车辆型号：</td>
                        <td>
                            @Html.TextBoxFor(model => model.VehicleModel, new {  })
                        </td>
                    </tr>
                    <tr>
                        <td>发动机号：</td>
                        <td>@Html.TextBoxFor(model => model.EngineId, new {  })</td>
                        <td>车架号：</td>
                        <td>@Html.TextBoxFor(model => model.VIN, new {  })</td>
                    </tr>
                    <tr>
                        <td>备注：</td>
                        <td colspan="3">
                            <textarea name="Fmemo" rows="3" style="width: 100%; resize: none;">@Model.FMemo</textarea>
                        </td>
                    </tr>
                </table>
            </div>
            }
            <div  title="附件信息" data-options="closable:false" style="height:477px;width:630px; text-align:center;">
                <div style="width:98%;height:425px;">
                    <table class="twocoltb">
                        <tr>
                            <td style="text-align: right;">油杆</td>
                            <td style="text-align: right;">@Html.CheckBoxFor(model => model.IsFuelBump)</td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">卸料传感器</td>
                            <td style="text-align: right;">@Html.CheckBoxFor(model=>model.IsOffBump)</td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">摄像头个数</td>
                            <td style="text-align: right;"><input id="IsCamera" name="IsCamera" class="easyui-numberspinner" style="width:40px;" value="@Model.IsCamera" data-options="min:0,max:4,editable:false"> </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">温度传感器</td>
                            <td style="text-align: right;">@Html.CheckBoxFor(model=>model.IsTempBump)</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div title="参数信息" data-options="closable:false" style="height:477px; width:630px;text-align:center;">
                <div style="height:425px;">
                <table style="width:98%;height:320px;">
                    <tr>
                        <td>座位数：</td>
                        <td>@Html.TextBoxFor(model => model.seatsNum, new {  })</td>
                        <td>燃油类型：</td>
                        <td>@Html.TextBoxFor(model => model.OilType, new {  })</td>
                    </tr>
                    <tr>
                        <td>购置证号：</td>
                        <td>@Html.TextBoxFor(model => model.PurchaseNum, new {  })</td>
                        <td>营业证号：</td>
                        <td>@Html.TextBoxFor(model => model.OperatNum, new {  })</td>
                    </tr>
                    <tr>
                        <td>百公里油耗（空载）：</td>
                        <td>@Html.TextBoxFor(model => model.EmptyCost, new {  })</td>
                        <td>轮胎数：</td>
                        <td>@Html.TextBoxFor(model => model.tiresNum, new {  })</td>
                    </tr>
                    <tr>
                        <td>百公里油耗（满载）：</td>
                        <td>@Html.TextBoxFor(model => model.FullCost, new {  })</td>
                        <td>吨位：</td>
                        <td>@Html.TextBoxFor(model => model.Tonnage, new {  })</td>
                    </tr>
                    <tr>
                        <td>核定承载方量：</td>
                        <td>@Html.TextBoxFor(model => model.LoadAmount, new {  })</td>
                        <td>承载容量：</td>
                        <td>@Html.TextBoxFor(model => model.LoadCapacity, new {  })</td>
                    </tr>
                    <tr>
                        <td>汽车销售商：</td>
                        <td>@Html.TextBoxFor(model => model.CarDealers, new {  })</td>
                        <td>预计残值：</td>
                        <td>@Html.TextBoxFor(model => model.SalvageValue, new {  })</td>
                    </tr>
                    <tr>
                        <td>
                            <label class="alert">*</label>所属单位：</td>
                        <td>
                            <input type="text" readonly="readonly" style="vertical-align:middle;width:155px;" id="PARTENTUNITNAME" name="PARTENTUNITNAME" value="@{if(Model.InfoUnit1!=null){@Model.InfoUnit.UNITNAME}}"/>
                            @Html.HiddenFor(model => model.ParentUnitId, new { @style = "vertical-align:middle;", id = "PARTENTUNITID" })
                            <img id="selectParentUnit" src="~/Images/search.png" style="vertical-align: middle;" />
                        </td>
                        <td>购买日期：</td>
                        <td>@Html.TextBoxFor(model => model.purchaseDate, new {  @readonly = "readonly", @class = "hasDatepicker Wdate", @onclick = "WdatePicker()" })</td>
                    </tr>
                </table>
                </div>
            </div>
        </div>

        <div style="text-align: center; margin-top: 20px; height: 60px;">
            <input type="button" value="确定" class="radius" id="submitBtn" />
            <input type="button" value="取消" class="radius" id="cancelBtn" onclick="javascript: window.top.art.dialog.get('operationmanagevehiclecreate').close();" />
            <div style="height: 30px;">
                <label class="alert" id="result">@ViewBag.Message</label>
            </div>
        </div>
    </div>
</form>
